<?php
  function connectDb() {
    $connection = mysql_connect('localhost', 'root', 'rootpass');
    if (!$connection) {
      die('Could not connect: ' . mysql_error());
    }
  
    mysql_select_db("metaweb_db", $connection);

    return $connection;
  }
?>
